package com.sojoys.artifact.factory.template;


import java.io.IOException;

import freemarker.template.Configuration;

/**
 * @author : DengYing
 * @CreateDate : 2017年7月6日 上午10:39:24
 * @Description ：Please describe this document
 */
@SuppressWarnings("rawtypes")
public class FreemarkerConfiguration extends IConfiguration<Configuration>{
	
	
	
	public FreemarkerConfiguration(Configuration configuration) {
		super();
		t = configuration;
	}

	@Override
	public ITemplate getITemplate(String path) {
		try {
			return new FreemarkerTemplate(t.getTemplate(path));
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
}
